﻿#include<iostream>
using namespace std;
int main() {
	unsigned int diamond{ 6000 };
	unsigned int vip_exp{ 80000 };

	unsigned xbase = diamond ^ vip_exp;

	cout << "修改钻石数量：";
	cin >> diamond;
	cout << "修改累计消费：";
	cin >> vip_exp;

	/*模拟一次检测*/
	unsigned realDiamond = xbase ^ vip_exp;
	unsigned realVip_exp = xbase ^ diamond;


	cout << "你应该的钻石量是：" << realDiamond << "你的实际钻石";
	cout << "你应该的累计消费是：" << realVip_exp;
}

//异或运算常用于加解密，a异或b能得到c，c异或b能得到a